package com.izhar.answeringmachine.utils;

import com.izhar.answeringmachine.Entity.Sample;

import java.util.ArrayList;
import java.util.List;

public class parametersToList {

    public static List<String> getParameterList(Sample sample){

        List<String> list = new ArrayList<>();

        if (sample.getInputSample()==null || sample.getInputSample().trim().equals(""))
            return list;

        String parameter = sample.getInputSample();
        String[] strings = parameter.split(" ");
        for (String string : strings) {
            list.add(parameter);
        }
        return list;
    }
}


